.class Les/i6;
.super Ljava/lang/Object;
.source "MRequest.java"

# interfaces
.implements Les/k6;
.implements Lcom/esfile/screen/recorder/andpermission/f;
.implements Lcom/esfile/screen/recorder/andpermission/PermissionActivity$a;


# static fields
.field private static final g:Les/r6;

.field private static final h:Les/d5;


# instance fields
.field private a:Les/q6;

.field private b:[Ljava/lang/String;

.field private c:Lcom/esfile/screen/recorder/andpermission/e;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/esfile/screen/recorder/andpermission/e<",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field

.field private d:Lcom/esfile/screen/recorder/andpermission/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/esfile/screen/recorder/andpermission/a<",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field

.field private e:Lcom/esfile/screen/recorder/andpermission/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/esfile/screen/recorder/andpermission/a<",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field

.field private f:[Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Les/r6;

    invoke-direct {v0}, Les/r6;-><init>()V

    sput-object v0, Les/i6;->g:Les/r6;

    .line 2
    new-instance v0, Les/f5;

    invoke-direct {v0}, Les/f5;-><init>()V

    sput-object v0, Les/i6;->h:Les/d5;

    return-void
.end method

.method constructor <init>(Les/q6;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Les/i6$a;

    invoke-direct {v0, p0}, Les/i6$a;-><init>(Les/i6;)V

    iput-object v0, p0, Les/i6;->c:Lcom/esfile/screen/recorder/andpermission/e;

    .line 3
    iput-object p1, p0, Les/i6;->a:Les/q6;

    return-void
.end method

.method private static varargs a(Les/d5;Les/q6;[Ljava/lang/String;)Ljava/util/List;
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/d5;",
            "Les/q6;",
            "[",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 7
    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 8
    array-length v2, p2

    const/4 v3, 0x0

    const/4 v4, 0x0

    :goto_0
    if-ge v4, v2, :cond_1

    aget-object v5, p2, v4

    .line 9
    invoke-virtual {p1}, Les/q6;->a()Landroid/content/Context;

    move-result-object v6

    new-array v7, v1, [Ljava/lang/String;

    aput-object v5, v7, v3

    invoke-interface {p0, v6, v7}, Les/d5;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_0

    .line 10
    invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method private static varargs a(Les/q6;[Ljava/lang/String;)Ljava/util/List;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/q6;",
            "[",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 11
    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 12
    array-length v1, p1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_1

    aget-object v3, p1, v2

    .line 13
    invoke-virtual {p0, v3}, Les/q6;->a(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 14
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method static synthetic a(Les/i6;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/i6;->c()V

    return-void
.end method

.method private a(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 5
    iget-object v0, p0, Les/i6;->e:Lcom/esfile/screen/recorder/andpermission/a;

    if-eqz v0, :cond_0

    .line 6
    invoke-interface {v0, p1}, Lcom/esfile/screen/recorder/andpermission/a;->a(Ljava/lang/Object;)V

    :cond_0
    return-void
.end method

.method private b()V
    .locals 4

    .line 2
    iget-object v0, p0, Les/i6;->d:Lcom/esfile/screen/recorder/andpermission/a;

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Les/i6;->b:[Ljava/lang/String;

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    .line 4
    :try_start_0
    iget-object v1, p0, Les/i6;->d:Lcom/esfile/screen/recorder/andpermission/a;

    invoke-interface {v1, v0}, Lcom/esfile/screen/recorder/andpermission/a;->a(Ljava/lang/Object;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    const-string v2, "AndPermission"

    const-string v3, "Please check the onGranted() method body for bugs."

    .line 5
    invoke-static {v2, v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 6
    iget-object v1, p0, Les/i6;->e:Lcom/esfile/screen/recorder/andpermission/a;

    if-eqz v1, :cond_0

    .line 7
    invoke-interface {v1, v0}, Lcom/esfile/screen/recorder/andpermission/a;->a(Ljava/lang/Object;)V

    :cond_0
    :goto_0
    return-void
.end method

.method private c()V
    .locals 3

    .line 1
    sget-object v0, Les/i6;->h:Les/d5;

    iget-object v1, p0, Les/i6;->a:Les/q6;

    iget-object v2, p0, Les/i6;->b:[Ljava/lang/String;

    invoke-static {v0, v1, v2}, Les/i6;->a(Les/d5;Les/q6;[Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    .line 2
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3
    invoke-direct {p0}, Les/i6;->b()V

    goto :goto_0

    .line 4
    :cond_0
    invoke-direct {p0, v0}, Les/i6;->a(Ljava/util/List;)V

    :goto_0
    return-void
.end method


# virtual methods
.method public a(Lcom/esfile/screen/recorder/andpermission/a;)Les/k6;
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/esfile/screen/recorder/andpermission/a<",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;>;)",
            "Les/k6;"
        }
    .end annotation

    .line 3
    iput-object p1, p0, Les/i6;->e:Lcom/esfile/screen/recorder/andpermission/a;

    return-object p0
.end method

.method public varargs a([Ljava/lang/String;)Les/k6;
    .locals 0

    .line 2
    iput-object p1, p0, Les/i6;->b:[Ljava/lang/String;

    return-object p0
.end method

.method public a()V
    .locals 4

    .line 4
    sget-object v0, Les/i6;->g:Les/r6;

    new-instance v1, Les/i6$b;

    invoke-direct {v1, p0}, Les/i6$b;-><init>(Les/i6;)V

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Les/r6;->a(Ljava/lang/Runnable;J)V

    return-void
.end method

.method public b(Lcom/esfile/screen/recorder/andpermission/a;)Les/k6;
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/esfile/screen/recorder/andpermission/a<",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;>;)",
            "Les/k6;"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Les/i6;->d:Lcom/esfile/screen/recorder/andpermission/a;

    return-object p0
.end method

.method public execute()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/i6;->a:Les/q6;

    invoke-virtual {v0}, Les/q6;->a()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Les/i6;->f:[Ljava/lang/String;

    invoke-static {v0, v1, p0}, Lcom/esfile/screen/recorder/andpermission/PermissionActivity;->b(Landroid/content/Context;[Ljava/lang/String;Lcom/esfile/screen/recorder/andpermission/PermissionActivity$a;)V

    return-void
.end method

.method public start()V
    .locals 3

    .line 1
    sget-object v0, Les/i6;->h:Les/d5;

    iget-object v1, p0, Les/i6;->a:Les/q6;

    iget-object v2, p0, Les/i6;->b:[Ljava/lang/String;

    invoke-static {v0, v1, v2}, Les/i6;->a(Les/d5;Les/q6;[Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    .line 2
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    new-array v1, v1, [Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Ljava/lang/String;

    iput-object v0, p0, Les/i6;->f:[Ljava/lang/String;

    .line 3
    array-length v1, v0

    if-lez v1, :cond_1

    .line 4
    iget-object v1, p0, Les/i6;->a:Les/q6;

    invoke-static {v1, v0}, Les/i6;->a(Les/q6;[Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    .line 5
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 6
    iget-object v1, p0, Les/i6;->c:Lcom/esfile/screen/recorder/andpermission/e;

    iget-object v2, p0, Les/i6;->a:Les/q6;

    invoke-virtual {v2}, Les/q6;->a()Landroid/content/Context;

    move-result-object v2

    invoke-interface {v1, v2, v0, p0}, Lcom/esfile/screen/recorder/andpermission/e;->a(Landroid/content/Context;Ljava/lang/Object;Lcom/esfile/screen/recorder/andpermission/f;)V

    goto :goto_0

    .line 7
    :cond_0
    invoke-virtual {p0}, Les/i6;->execute()V

    goto :goto_0

    .line 8
    :cond_1
    invoke-direct {p0}, Les/i6;->c()V

    :goto_0
    return-void
.end method
